/**
 *			\author ITII - ISEN - P6
 *			\author Jonathan CASSAING
 *			\file SmtpProtocol.h
 *			\version 0.3
 *			\date 09/09/2010
 */


#ifndef SMTPPROTOCOL_H_INCLUDED
#define SMTPPROTOCOL_H_INCLUDED


#include <string>
#include "Mail.h"


#define HELO		"HELO"
#define EHLO		"EHLO"
#define MAIL_FROM	"MAIL FROM:"
#define RCPT_TO		"RCPT TO:"
#define DATA		"DATA"
#define SUBJECT		"Subject:"
#define QUIT		"QUIT"


class SmtpProtocol
{
	public:
		/**
		 * Warning! This function has been deprecated!
		 */
		static int		formatMail( char * buffer,
						    int bufferSize,
						    const Mail & mail );
		static std::string	formatMail(const Mail & mail);
};


#endif // SMTPPROTOCOL_H_INCLUDED
